package com.paw.ruoyi.admin.common.domain;

import java.util.Collections;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lvzihai
 * @date 2022/2/18
 **/
@Data
public class PageData<T> {


  /**
   * 查询数据列表
   */
  @ApiModelProperty("查询数据列表")
  private List<T> records = Collections.emptyList();

  /**
   * 总数
   */
  @ApiModelProperty("总数")
  private long total = 0;


  public PageData () {
  }

  public PageData (long total, List<T> records) {
    this.total = total;
    this.records = records;
  }
}
